/**
 * https://leetcode-cn.com/problems/reverse-bits/
 * 颠倒二进制位
 * @param n 
 */
const reverseBits = (n: number): number => {
    return parseInt(n.toString(2).padStart(32, '0').toString().split('').reverse().join(''), 2)
};

reverseBits(43261596)